# Note: CMake support is community-based. The maintainers do not use CMake
# internally.

cmake_minimum_required(VERSION 3.5)

if (POLICY CMP0048)
  cmake_policy(SET CMP0048 NEW)
endif (POLICY CMP0048)

if (POLICY CMP0077)
  cmake_policy(SET CMP0077 NEW)
endif (POLICY CMP0077)

project(kumotest-distribution)
set(KUMOTEST_VERSION 1.12.1)
set(CMAKE_CXX_STANDARD 17)
if(NOT CYGWIN AND NOT MSYS AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL QNX)
  set(CMAKE_CXX_EXTENSIONS OFF)
endif()

enable_testing()

include(CMakeDependentOption)
include(GNUInstallDirs)

#Note that kumomock target already builds kumotest
option(BUILD_KMOCK "Builds the kumomock subproject" ON)
option(INSTALL_KTEST "Enable installation of kumotest. (Projects embedding kumotest may want to turn this OFF.)" ON)

if(BUILD_KMOCK)
  add_subdirectory( kumomock )
else()
  add_subdirectory( kumotest )
endif()
